<template>
  <br>
  <h3 style="color: red"><strong>11.2 事件处理：方法事件处理器</strong></h3> <br>
    <button @click="addCount">add{{count}}</button>
    <button @click="handleEvent($event)">HandleEvent</button>
    <button @click="say('hello')">say hello</button>
</template>

<script>
export default {
  name: "EventDemo1",
  data(){
    return{
      count:0
    }
  },
  methods:{
    addCount(){
      this.count++
    },
    handleEvent(e){
      console.log(e)
    },
    say(msg){
      console.log(msg)
    }
  }
}
</script>

<style scoped>

</style>